/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.nii.qlks.ControlLayer;

import edu.nii.qlks.BusinessLogicLayer.CTBCDoanhThuBLL;
import edu.nii.qlks.DataTransferObject.CTBCDoanhThuInfo;
import java.util.ArrayList;

/**
 *
 * @author MARS_NHO
 */
public class CTBCDoanhThuControl {
    CTBCDoanhThuBLL ChiTietBaoCaoDoanhThu = new CTBCDoanhThuBLL();
    
 
    public ArrayList LayDS() throws Exception{
        return ChiTietBaoCaoDoanhThu.LayDS();
    }
        
    public void Insert(CTBCDoanhThuInfo chiTietBaoCaoDoanhThuInfo) throws Exception{
        ChiTietBaoCaoDoanhThu.Insert(chiTietBaoCaoDoanhThuInfo);
    }
    
    public void Update(CTBCDoanhThuInfo chiTietBaoCaoDoanhThuInfo) throws Exception{
        ChiTietBaoCaoDoanhThu.Update(chiTietBaoCaoDoanhThuInfo);
    }
    
    public void Delete(CTBCDoanhThuInfo chiTietBaoCaoDoanhThuInfo) throws Exception{
        ChiTietBaoCaoDoanhThu.Delete(chiTietBaoCaoDoanhThuInfo);
    }
    
    public String TaoMaTuDong(String maGoc, int batDau){
         return ChiTietBaoCaoDoanhThu.TaoMaTuDong(maGoc, batDau);
     }
}
